package com.gullmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gullmall.common.utils.PageUtils;
import com.gullmall.common.utils.R;
import com.gullmall.ware.entity.PurchaseDetailEntity;
import com.gullmall.ware.entity.WareSkuEntity;
import com.gullmall.common.to.SkuHasStockTo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author lidai
 * @email 332617778@qq.com
 * @date 2022-05-19 17:00:30
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);


    R addStock(List<PurchaseDetailEntity> purchaseDetailEntities);

    List<SkuHasStockTo> getSkuHasStock(List<Long> skuIds);
}

